package cn.alcatraz.controller;


import cn.alcatraz.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


/**
* @Description: user controller
* @Author: Alcatraz
* @Version: 1.0
* @Date:  2022/7/27 21:30
*/

@RestController
public class UserController {


    @GetMapping("/getUserById/{id}")
    public User getUserById(@PathVariable Long id){
        //通过id  到数据库查询指定的用户的信息



        return User.builder().id(id).name("wnd").intro("我恁爹").build();
    }
}
